#include<iostream>
using namespace std;

class woof
{
public:
    virtual void display()
    {
        cout<<"display"<<endl;
    }
};

class woof2:public woof{
public:
    void display() override
    {
        cout<<"display2"<<endl;
    }
};

class woof3:public woof2{
public:
    void display() override
    {
        cout<<"display3"<<endl;
    }
};



int main()
{
    woof* woofspeed;
    woofspeed->display();
    
    return 0;
}